package cn.labbook.bluetooth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lonzy
 * @since 2019-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LadderScheme implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ladder_id", type = IdType.AUTO)
    private Integer ladderId;

    /**
     * 阶梯开始值
     */
    private Double ladderStartValue;

    /**
     * 阶梯结束值
     */
    private Double ladderEndValue;

    /**
     * 标准电价
     */
    private Double standardPrice;

    /**
     * 尖电价
     */
    private Double firstPrice;

    /**
     * 峰电价
     */
    private Double secondPrice;

    /**
     * 平电价
     */
    private Double thirdPrice;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 电价状态（1启用，0禁用）
     */
    private Integer ladderStatus;

    private String ammeterId;

    /**
     * 外部属性
     */
    private transient Double dayPrice;
    private transient Double nightPrice;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private transient Date effectTime;
    private transient Integer program;

}
